package com.dawn.module.mp.api.msgtemplate.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateData;

import java.util.List;

/**
 * @description:
 * @author: cnsu-cmh
 * @time: 2024/8/23 18:14
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class TemplateMsgSendDTO {

    @NotNull(message = "appid不得为空")
    private String appid;
    @NotNull(message = "需户openid不得为空")
    private String openid;
    @NotEmpty(message = "模板ID不得为空")
    private String templateId;
    private String url;
    @NotEmpty(message = "消息模板数据不得为空")
    private List<WxMpTemplateData> data;

}
